﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace DalatCooking.Core
{
    public abstract class IPollRepository
    {
        public abstract int Insert(Poll entity);
        public abstract bool Update(Poll entity);
        public abstract bool Delete(int pollID);
        public abstract List<Poll> FindAll();
        public abstract DataSet FindAllPollRandom();
        public abstract DataSet FindAllPoll();
        public abstract DataSet FindPoll_ByID(int pollID);
        public abstract int SelectPollIP(int pollID, string ipAddress);
        public abstract int InsertPollIP(int pollID, string ipAddress);
        public abstract int InsertChoice(int PollID, string Choice);
        public abstract  int UpdateChoice(int PollChoiceID, string Choice);
        public abstract int UpdateChoiceVote(int choiceID);
        public abstract int DeleteChoice(int choiceID);
    }
}
